<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>细节点</title>
  <script src="vue.js"></script>
</head>
<body>
<!--is属性解决了一些BUG-->
<!--data在子组件中以函数的形式存在-->
<div id="app">
       <table>
          <tbody>
             <tr is="row"></tr>
             <tr is="row"></tr>
             <tr is="row"></tr>
          </tbody>
       </table>
</div>
<script>
  Vue.component('row',{
          data:function(){
            return{
               content:'this is content'
            }
          },
          template:'<tr><td>{{content}}</td></tr>'
  })
  var vm=new Vue({
    el:"#app"
  })
</script>
</body>
</html>
